<div id="wrapper">
  <!-- Navigation -->

  <!-- Page wraper -->
  <div id="page-wrapper" class="gray-bg" style="height: auto;">
    <!-- Page wrapper -->
    <div class="row">
      <div class="col-lg-12">
        <div class="tabs-container">
          <tabset>
            <!--个人信息管理-->
            <tab heading="个人信息管理">
              <div class="panel-body">
                <div class="row">
                  <div class="col-sm-12">
                    <div class="ibox float-e-margins">
                      <div class="ibox-title" style="border-style: none;">
                        <h5>查看您的个人信息列表</h5>
                        <div ibox-tools="" class="ng-scope"></div>
                      </div>
                      <div class="ibox-content">
                        <div class="widget-body">
                          <form data-parsley-validate=""
                                class="form-horizontal form-label-left ng-pristine ng-invalid ng-invalid-required"
                                id="userdetail-form" novalidate="" ng-submit="updateUser()">
                            <input type="hidden" name="userid" id="userdetail-userid"
                                   value="">
                            <input type="hidden" name="updateuser"
                                   id="userdetail-updateuser" value="">
                            <legend style="color: red; display: none;" id="examine"></legend>
                            <fieldset>
                              <div class="col-md-2">
                                <img id="imgPre" src="{{userdata.headpic}}"err-src="assets/images/common/linkingMed-mark.jpg" width="100px" height="100px" style="display: block;" />
                                <input type="file" name="headpicfile"  id="imgOne" onchange="preImg(this.id,'imgPre');"style="display: none" />
                                <input type="button" class="btn btn-info" value="选择头像" ng-click="selectImg()" style="width: 100px;">
                              </div>
                              <div class="col-md-10">
                                <div class="form-group">
                                  <label class="control-label col-sm-1">
                                    用户名<span
                                    style="color: red; margin-left: 5px;">*</span>
                                  </label>
                                  <div class="col-sm-6">
                                    <input type="text" required="required"
                                           disabled="disabled" class="form-control"
                                           ng-model="userdata.username"
                                           data-parsley-id="30">
                                  </div>
                                </div>
                                <div class="form-group">
                                  <label class="control-label col-sm-1" >性别<span style="color: red;margin-left: 5px;">*</span></label>
                                  <div class="col-sm-4">
                                    <div class="radio">
                                      <input  type="radio" name="gender"
                                              ng-value="1" ng-model="userdata.gender" style="margin-left: 5px;" id="male"> <label for="male"> 男
                                    </label>
                                    </div>
                                  </div>
                                  <div class="col-sm-4 col-sm-offset-1">
                                    <div class="radio">
                                      <input  type="radio" ng-value="2" name="gender" ng-model="userdata.gender"
                                              style="margin-left: 5px;" id="female"> <label for="female"> 女 </label>
                                    </div>
                                  </div>
                                </div>
                                <div class="form-group">
                                  <label class="control-label col-sm-1">
                                    生日<span style="color: red; margin-left: 5px;">*</span>
                                  </label>
                                  <div class="col-sm-6">
                                    <div class="input-group date">
                                      <input class="form-control" type="datetime" date-time
                                             auto-close="true" min-view="date" format="YYYY-MM-DD" id="userdatabirthday"
                                             ng-model="userdata.birthday" readonly>
                                      <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                    </div>
                                  </div>
                                </div>


<!--                                //
                                <div class="col-md-4">
                                  <div class="form-group">
                                    <label class="control-label">{{starttime}}</label>
                                    <div class="input-group date">
                                      <input type="datetime" class="form-control" date-time id="studystartdate"ng-click="changeDate1();"
                                             ng-model="startTime" view="date" auto-close="true" min-view="date"
                                             format="YYYY-MM-DD" readonly>
                                      <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                        <span class="input-group-addon" ng-show="visible1" ng-click="switchvisible1();"><i
                                          class="fa fa-unlock"></i></span>
                                        <span class="input-group-addon" ng-show="!visible1"
                                              ng-click="switchvisible1();"><i class="fa fa-lock"></i></span>
                                    </div>
                                  </div>
                                </div>-->
                                <div class="form-group">
                                  <label class="control-label col-sm-1">
                                    手机
                                  </label>
                                  <div class="col-sm-6">
                                    <input type="text" required="required"
                                           data-parsley-type="text"
                                           class="form-control" name="mobile"
                                           ng-model="userdata.mobile">
                                  </div>
                                </div>
                                <div class="form-group">
                                  <label class="control-label col-sm-1">
                                    电话
                                  </label>
                                  <div class="col-sm-6">
                                    <input type="text" required="required"
                                           data-parsley-type="text"
                                           class="form-control" name="phone"
                                           ng-model="userdata.phone">
                                  </div>
                                </div>
                                <div class="form-group">
                                  <label class="control-label col-sm-1">
                                    邮箱<span
                                    style="color: red; margin-left: 5px;">*</span>
                                  </label>
                                  <div class="col-sm-6">
                                    <input type="email" required="required"
                                           data-parsley-type="email"
                                           class="form-control" name="email"
                                           ng-model="userdata.email">
                                  </div>
                                </div>
                                <div class="form-group">
                                  <label class="control-label col-sm-1">通讯地址</label>
                                  <div class="col-sm-6">
                                    <input type="text" name="address"
                                           class="form-control mb-sm"
                                           ng-model="userdata.address"
                                    >
                                  </div>
                                </div>
                                <div class="form-group">
                                  <label class="control-label col-sm-1">默认首页</label>
                                  <div class="col-sm-6">
                                    <select class="select form-control" ng-model="userdata.defMenu" ng-options="page.sref as page.txt for page in pages"></select>
                                  </div>
                                </div>
                              </div>
                            </fieldset>
                            <fieldset>
                              <legend>
                                <h4>认证个人信息</h4>
                              </legend>
                              <div class="form-group">
                                <label class="control-label col-sm-2 col-sm-offset-1">
                                  真实姓名<span style="color: red; margin-left: 5px;">*</span> </label>
                                <div class="col-sm-6">
                                  <input type="text" name="truename" class="form-control mb-sm" ng-model="userdata.name"
                                         required="required" maxlength="10">
                                </div>
                              </div>
<!--                              <div class="form-group">
                                <label class="control-label col-sm-2 col-sm-offset-1">
                                  所在医院<span
                                  style="color: red; margin-left: 5px;">*</span>
                                </label>
                                <div class="col-sm-2">
                                  <select class="selectpicker form-control" data-width="auto" tabindex="-1" ng-model="userdata.province"
                                          id="userdetail-province" name="province"
                                          data-parsley-multipleof="0" data-parsley-group="block1">
                                    <option value="0">请选择省份</option>
                                  </select>
                                  &lt;!&ndash; <input type="text" name="province" class="form-control" id="userdetail-province"/> &ndash;&gt;
                                </div>
                                <div class="col-sm-2">
                                  <select class="selectpicker form-control" data-width="auto" tabindex="-1" ng-model="userdata.city"
                                          id="userdetail-city" name="city" data-parsley-multipleof="0"
                                          data-parsley-group="block1">
                                    <option value="0">请选择城市</option>
                                  </select>
                                  &lt;!&ndash; <input type="text" name="city" class="form-control" id="userdetail-city"/> &ndash;&gt;
                                </div>
                                <div class="col-sm-2" style="min-width: 200px;">
                                  <select class="selectpicker form-control" data-width="auto" tabindex="-1"  ng-model="userdata.area"
                                          id="userdetail-area" name="area" data-parsley-multipleof="0"
                                          data-parsley-group="block1">
                                    <option value="0">请选择区县</option>
                                  </select>
                                  &lt;!&ndash;  <input type="text" name="area" class="form-control" id="userdetail-area"/> &ndash;&gt;
                                </div>
                              </div>
                              <div class="form-group">
                                <label class="control-label col-sm-2 col-sm-offset-1"> </label>
                                <div class="col-sm-6">
                                  <input type="text" name="hospital"
                                         class="form-control mb-sm"
                                         ng-model="userdata.hospital"
                                         data-parsley-id="42">
                                </div>
                              </div>-->
                              <div class="form-group">
                                <label class="control-label col-sm-2 col-sm-offset-1"
                                > 科室<span style="color: red; margin-left: 5px;">*</span> </label>
                                <div class="col-sm-6">
                                  <select class="select form-control"
                                          ng-model="userdata.department"  name="department">
                                    <optgroup label="内科">
                                      <option>神经内科</option>
                                      <option>呼吸科</option>
                                    </optgroup>
                                    <optgroup label="外科">
                                      <option>骨科</option>
                                      <option>神经外科</option>
                                      <option>普通外科</option>
                                      <option>肝胆外科</option>
                                      <option>泌尿外科</option>
                                      <option>胸外科</option>
                                      <option>创伤骨科</option>
                                      <option>功能神经外科</option>
                                    </optgroup>
                                    <optgroup label="其他">
                                      <option>放射科</option>
                                      <option>口腔科</option>
                                      <option>超声医学科</option>
                                      <option>介入放射科</option>
                                      <option>放疗科</option>
                                      <option>病理科</option>
                                    </optgroup>
                                  </select>
                                </div>
                              </div>
                              <div class="form-group">
                                <label class="control-label col-sm-2 col-sm-offset-1"
                                > 医师职称 <span style="color: red; margin-left: 5px;">*</span></label>
                                <div class="col-sm-6">
                                  <select class="select form-control" name="title"
                                          ng-model="userdata.title" data-parsley-group="block1">
                                    <option>主任医师</option>
                                    <option>副主任医师</option>
                                    <option>主治医师</option>
                                    <option>住院医师</option>
                                    <option>其它</option>
                                  </select>
                                </div>
                              </div>
                              <!--<div class="form-group">
                                <label class="control-label col-sm-2 col-sm-offset-1"
                                > 高校职务<span style="color: red; margin-left: 5px;">*</span> </label>
                                <div class="col-sm-6">
                                  <select class="select form-control" name="post"
                                          ng-model="userdata.post" data-parsley-group="block1" required>
                                    <option>教授</option>
                                    <option>副教授</option>
                                    <option>讲师</option>
                                    <option>博士后</option>
                                    <option>其他</option>
                                  </select>
                                </div>
                              </div>-->
                              <div class="form-group">
                                <label class="col-sm-2 control-label col-sm-offset-1">擅长<span
                                  style="color: red; margin-left: 5px;">*</span></label>
                                <div class="col-sm-6">
<!--                                  <input type="text" ng-model="userdata.skilled"
                                         value="" required="required"
                                         data-parsley-trigger="change" placeholder=""
                                         class="form-control ng-pristine ng-untouched ng-invalid ng-invalid-required"
                                         name="skilled">-->
                                  <textarea ng-model="userdata.skilled" rows="5" required="required"
                                            class="form-control ng-pristine ng-untouched ng-invalid ng-invalid-required"
                                            data-parsley-trigger="change"
                                            name="skilled">

                                  </textarea>
                                </div>
                              </div>
<!--                              <div class="form-group">
                                <label class="col-sm-2 control-label col-sm-offset-1">职业经历<span
                                  style="color: red; margin-left: 5px;">*</span></label>
                                <div class="col-sm-6">
                                            <textarea required="required"
                                                      ng-model="userdata.experience" name="experience"
                                                      class="form-control ng-pristine ng-untouched ng-invalid ng-invalid-required"
                                                      rows="4" ></textarea>
                                </div>
                              </div>-->
                            </fieldset>
                            <fieldset>
                              <legend>
                                <h4>认证个人证件</h4>
                              </legend>
<!--                              <div class="col-sm-2 fileinput fileinput-new" data-provides="fileinput">
                                <img id="imgPre2" src="{{userdata.card|cardLogo}}"err-src="img/404.jpg" width="100px" height="100px" style="display: block;" />
                                <input type="file" name="cardfile"  id="img2" onchange="preImg(this.id,'imgPre2');"style="display: none" />
                                <input type="button" class="btn btn-info" value="工牌" ng-click="selectImg2()" style="width: 100px;">
                              </div>
                              <div class="col-sm-2 fileinput fileinput-new" data-provides="fileinput">
                                <img id="imgPre3" src="{{userdata.cert|certLogo}}"err-src="img/404.jpg" width="100px" height="100px" style="display: block;" />
                                <input type="file" name="certfile"  id="img3" onchange="preImg(this.id,'imgPre3');"style="display: none" />
                                <input type="button" class="btn btn-info" value="执业证书" ng-click="selectImg3()" style="width: 100px;">
                              </div>-->
                              <div class="col-sm-2 fileinput fileinput-new" data-provides="fileinput">
                                <img id="imgPre4" src="{{userdata.signature}}"err-src="assets/images/common/def-Register-signature.jpg" width="100px" height="100px" style="display: block;" />
                                <input type="file" name="signaturefile"  id="img4" onchange="preImg(this.id,'imgPre4');"style="display: none" />
                                <input type="button" class="btn btn-info" value="签名" ng-click="selectImg4()" style="width: 100px;">
                              </div>
                            </fieldset>
                            <div class="form-actions">
                              <div class="row">
                                <div class="col-sm-12">
                                  <button type="submit"
                                          class="btn btn-primary btn-rounded validate  pull-rihgt col-xs-offset-7  col-sm-offset-7">
                                    确认更新
                                  </button>
                                </div>
                              </div>
                            </div>
                          </form>
                          <input type="hidden" value="0" id="pre_province"/>
                          <input type="hidden" value="0" id="pre_city" />
                          <input type="hidden" value="0" id="pre_district" />
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </tab>
            <!--修改密码-->
            <tab heading="修改密码">
              <div class="panel-body">
                <div class="row">
                  <div class="col-sm-12">
                    <div class="ibox float-e-margins">
                      <div class="ibox-title" style="border: 0px;">
                        <h5>修改您的密码</h5>
                        <div ibox-tools="" class="ng-scope"></div>
                      </div>
                      <div class="ibox-content">
                        <div class="col-sm-6 col-sm-offset-3 widget-body">

                          <form class="form-horizontal form-label-left" ng-submit="updatePass();" role="form">
                            <input type="hidden" id="passowrdupdate-userid" name="userid">
                            <fieldset>
                              <div class="form-group">
                                <label class="control-label col-sm-2"> 原密码
                                </label>
                                <div class="col-sm-10">
                                  <input type="password" required="required" class="form-control parsley-success"placeholder="{{ 'OLDPASSWORD' | translate }}" name="password" id="password">
                                </div>
                              </div>
                              <div class="form-group">
                                <label class="control-label col-sm-2"> 新密码
                                </label>
                                <div class="col-sm-10">
                                  <input type="password" required="required"  pattern="^[a-zA-Z0-9!@#$%?_+-,./;']{6,20}$" placeholder="{{ 'REGISTER_PASSWORDMIN6' | translate }}" class="form-control" id="newpass" >
                                </div>
                              </div>
                              <div class="form-group">
                                <label  class="control-label col-sm-2">
                                  确认密码 </label>
                                <div class="col-sm-10">
                                  <input type="password" required="required"   pattern="^[a-zA-Z0-9!@#$%?_+-,./;']{6,20}$" placeholder="{{ 'REGISTER_PASSWORD_CONFIRM' | translate }}"class="form-control"  id="rpassword" >
                                </div>
                              </div>
                            </fieldset>
                            <div style="background:#fff" class="form-actions">
                              <div class="row">
                                <div class="col-sm-12">
                                  <button type="submit" type="button" class="btn btn-primary width-100 validate pull-right">确认</button>
                                </div>
                              </div>
                            </div>
                          </form>
                        </div>

                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </tab>
<!--            &lt;!&ndash;隐私设置&ndash;&gt;
            <tab heading="隐私设置">
              <div class="panel-body">
                <div class="row">
                  <div class="col-sm-7 col-sm-offset-2">
                    <div class="ibox float-e-margins">
                      <div class="ibox-title" style="border-style: none;">
                        <h5>隐私设置</h5>
                        <div ibox-tools="" class="ng-scope"></div>
                      </div>
                      <div class="ibox-content">
                        <div class="widget-body">
                          <form  class="form-horizontal form-label-left ng-pristine ng-valid" id="private-form">
                            <input type="hidden" id="private-userid" name="userid">
                            <fieldset>
                              <legend style="font-size: 18px;font-weight: bold">勾选下面的设置，将避免搜索引擎找到您：</legend>
                              <div class="form-group">
                                <div class="col-sm-12">
                                  <div class="checkbox checkbox-success">
                                    <input type="checkbox" id="private-userfind" ng-true-value="1" ng-false-value='0'name="userfind" ng-model="set.userfind">
                                    <label for="private-userfind" class="font_14_border">禁止其他用户找我（好友除外）</label>
                                  </div>
                                </div>
                              </div>
                              <div class="form-group">
                                <div class="col-sm-12">
                                  <div class="checkbox checkbox-success">
                                    <input type="checkbox" id="private-doctorfind" ng-true-value="1" ng-false-value='0'name="doctorfind" ng-model="set.doctorfind">
                                    <label for="private-doctorfind" class="font_14_border">禁止医生找我（医生朋友除外）</label>
                                  </div>
                                </div>
                              </div>
                              <div class="form-group">
                                <div class="col-sm-12">
                                  <div class="checkbox checkbox-success">
                                    <input type="checkbox" id="private-instfind" ng-true-value="1" ng-false-value='0'name="instfind" ng-model="set.instfind">
                                    <label for="private-instfind" class="font_14_border">禁止医疗机构找我（好友除外）</label>
                                  </div>
                                </div>
                              </div>
                            </fieldset>
                            <fieldset>
                              <legend style="font-size: 18px; font-weight: bold"> 勾选下面的设置，将避免接受信息： </legend>
                              <div class="form-group">
                                <div class="col-sm-12">
                                  <div class="checkbox checkbox-success">
                                    <input type="checkbox" id="private-usermsg" ng-true-value="1" ng-false-value='0' name="usermsg"ng-model="set.usermsg">
                                    <label for="private-usermsg"class="font_14_border">禁止接收其他用户（好友除外）的消息</label>
                                  </div>
                                </div>
                              </div>
                              <div class="form-group">
                                <div class="col-sm-12">
                                  <div class="checkbox checkbox-success">
                                    <input type="checkbox" id="private-doctormsg" ng-true-value="1" ng-false-value='0'name="doctormsg" ng-model="set.doctormsg">
                                    <label for="private-doctormsg" class="font_14_border">禁止接收医生（医生朋友除外）的消息</label>
                                  </div>
                                </div>
                              </div>
                              <div class="form-group">
                                <div class="col-sm-12">
                                  <div class="checkbox checkbox-success">
                                    <input type="checkbox" id="private-instmsg" ng-true-value="1" ng-false-value='0'name="instmsg"ng-model="set.instmsg">
                                    <label for="private-instmsg" class="font_14_border">禁止接收医疗机构（好友除外）的消息</label>
                                  </div>
                                </div>
                              </div>
                            </fieldset>
                            <fieldset>
                              <legend style="font-size: 18px; font-weight: bold"> 勾选下面的设置阅片获取影像的格式（DICOM/JPG）：</legend>
                              <div class="form-group">
                                <div class="col-sm-12">
                                  <div class="checkbox checkbox-success">
                                    <input type="checkbox" ng-click="checkThis(1)" id="private-isDicom" ng-true-value="1"  name="isDicomOrJpg" ng-model="set.isDicomOrJpg">
                                    <label for="private-isDicom"  class="font_14_border">获取DICOM 原图影像</label>
                                  </div>
                                </div>
                              </div>
                              <div class="form-group">
                                <div class="col-sm-12">
                                  <div class="checkbox checkbox-success" >
                                    <input type="checkbox" ng-click="checkThis(2)" id="private-isJpg" ng-true-value="0" name="isDicomOrJpg" ng-model="set.isDicomOrJpg">
                                    <label for="private-isJpg"class="font_14_border">获取JPG 格式影像</label>
                                  </div>
                                </div>
                              </div>
                            </fieldset>
                            <div class="form-actions">
                              <div class="row">
                                <div class="col-sm-12">
                                  <button id="update-data-btn" ng-click="updatePrivate();" type="button" class="btn btn-primary pull-right">确认
                                  </button>
                                </div>
                              </div>
                            </div>
                          </form>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </tab>
            &lt;!&ndash;推荐查询&ndash;&gt;
            <tab heading="推荐查询">
              <div class="panel-body">
                <div class="row">
                  <div class="ibox float-e-margins">
                    <div class="ibox-title">
                      <h5>查询您推荐的病例</h5>
                      <div ibox-tools="" class="ng-scope"></div>
                    </div>
                    <div class="wrapper">
                      <div class="" ng-controller="datatablesCtrl">
                        <div class="row">
                          <div class="col-lg-12">
                            <div class="ibox float-e-margins">
                              <div class="ibox-content table-responsive">
                                <table datatable="ng" dt-options="dtOptions"
                                       class="table table-striped table-bordered table-hover dataTables-example">
                                  <thead>
                                  <tr>
                                    <th style="max-width:50px;min-width:50px;">
                                      咨询标题
                                    </th>
                                    <th style="max-width:80px;min-width:80px;"
                                        class="">咨询医生
                                    </th>
                                    <th style="max-width:50px;min-width:50px;"
                                        class="">咨询价格
                                    </th>
                                    <th style="max-width:50px;min-width:50px;"
                                        class="">咨询截止时间
                                    </th>
                                    <th style="max-width: 90px;min-width:90px;"
                                        class="hidden-xs hidden-sm">病人名称
                                    </th>
                                    <th style="max-width:200px;min-width:200px;">
                                      备注
                                    </th>
                                  </tr>
                                  </thead>
                                  <tbody>
                                  <tr ng-repeat="person in persons">
                                    <td>{{ person.title}}</td>
                                    <td>{{ person.truename }}</td>
                                    <td>{{ person.price}}</td>
                                    <td>{{ person.endtime}}</td>
                                    <td>{{ person.patientname}}</td>
                                    <td>{{ person.memo}}</td>
                                  </tr>
                                  </tbody>
                                </table>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </tab>
            &lt;!&ndash;自定义&ndash;&gt;
            <tab heading="自定义">
              <div class="panel-body">
                <div class="row">
                  <div class="col-sm-7 col-sm-offset-2">
                    <div class="ibox float-e-margins">
                      <div class="ibox-title">
                        <h5>报告自定义</h5>
                        <div ibox-tools="" class="ng-scope"></div>
                      </div>
                      <div class="ibox-content">
                        <div class="widget-body">
                          <form  class="form-horizontal form-label-left ng-pristine ng-valid" id="defineConsult">
                            <fieldset>
                              <div class="form-group">
                                <label class="control-label col-sm-2 col-sm-offset-1"> 咨询报告标题
                                </label>
                                <div class="col-sm-6">
                                  <input type="text" id="title"
                                         class="form-control" ng-model="consultData.ask_report_title" name="ask_report_title" maxlength="20">
                                </div>
                              </div>
                              <div class="form-group">
                                <label class="control-label col-sm-2 col-sm-offset-1"> 咨询报告副标题 </label>
                                <div class="col-sm-6">
                                  <input type="text"  class="form-control" id="subtitle"
                                         ng-model="consultData.ask_report_subtitle" name="ask_report_subtitle" maxlength="20">
                                </div>
                              </div>
                              <div class="form-group">
                                <label class="control-label col-sm-2 col-sm-offset-1">
                                  电子单标题
                                </label>
                                <div class="col-sm-6">
                                  <input id="etitle"
                                         class="form-control"
                                         ng-model="consultData.image_report_title" name="image_report_title" maxlength="20">
                                </div>
                              </div>
                              <div class="form-group">
                                <label class="control-label col-sm-2 col-sm-offset-1">
                                  电子单副标题
                                </label>
                                <div class="col-sm-6">
                                  <input id="esubtitle"
                                         class="form-control"
                                         ng-model="consultData.image_report_subtitle" name="image_report_subtitle" maxlength="20">
                                </div>
                              </div>
                              <div class="form-group">
                                <label class="control-label col-sm-2 col-sm-offset-1">
                                  服务热线
                                </label>
                                <div class="col-sm-6">
                                  <input id="tel"
                                         class="form-control"
                                         ng-model="consultData.server_hotline" name="server_hotline" maxlength="20">
                                </div>
                              </div>
                              <div class="form-group">
                                <label class="control-label col-sm-2 col-sm-offset-1">
                                  平台名称
                                </label>
                                <div class="col-sm-6">
                                  <input id="rangename"
                                         class="form-control"
                                         ng-model="consultData.server_platform" name="server_platform" maxlength="20">
                                </div>
                              </div>
                              <div class="form-group">
                                <label class="control-label col-sm-2 col-sm-offset-1">
                                  组织/医院网站
                                </label>
                                <div class="col-sm-6">
                                  <input id="hospital"
                                         class="form-control"
                                         ng-model="consultData.server_site" name="server_site">
                                </div>
                              </div>
                            </fieldset>
                            <div class="form-actions">
                              <div class="row">
                                <div class="col-sm-12">
                                  <button onclick="history.back()" class="btn btn-default  mb-xs">
                                    <i class="glyphicon glyphicon-arrow-left text-success"></i> 返回
                                  </button>
                                  <button type="button"ng-click="defineReport()" class="btn btn-primary pull-right">确认
                                  </button>
                                </div>
                              </div>
                            </div>
                          </form>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </tab>-->
          </tabset>
        </div>
      </div>
    </div>
  </div>
</div>
<toaster-container></toaster-container>
<script>
  /**
   * 从 file 域获取 本地图片 url
   */
  function getFileUrl(sourceId) {
    var url;
    if (navigator.userAgent.indexOf("MSIE")>=1) { // IE
      url = document.getElementById(sourceId).value;
    } else if(navigator.userAgent.indexOf("Firefox")>0) { // Firefox
      url = window.URL.createObjectURL(document.getElementById(sourceId).files.item(0));
    } else if(navigator.userAgent.indexOf("Chrome")>0) { // Chrome
      console.log(document.getElementById(sourceId).files.item(0));
      url = window.URL.createObjectURL(document.getElementById(sourceId).files.item(0));
    }
    return url;
  }

  /**
   * 将本地图片 显示到浏览器上
   */
  function preImg(sourceId, targetId) {
    var curInput=document.getElementById(sourceId);
    curInput.setAttribute("bChanged",true);
    var url = getFileUrl(sourceId);
    var imgPre = document.getElementById(targetId);
    imgPre.src = url;
  }
</script>
